home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3492 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.4 KB

  1. Path: ix.netcom.com!netnews
  2. From: jmanson@ix.netcom.com(The MadMan )
  3. Newsgroups: comp.programming,alt.msdos.programmer,comp.lang.c++
  4. Subject: Re: How to detect HD
  5. Date: 24 Jan 1996 10:37:03 GMT
  6. Organization: Netcom
  7. Message-ID: <4e524f$roo@reader2.ix.netcom.com>
  8. References: <4d5s19$m7l@nosy.bart.nl> <4de9g4$sc6@hades.rz.uni-sb.de> <4dh3tt$5lu@neptune.cs.trinity.edu> <4dk51e$c6d@maureen.teleport.com>
  9. NNTP-Posting-Host: sdx-ca11-16.ix.netcom.com
  10. X-NETCOM-Date: Wed Jan 24  2:37:03 AM PST 1996
  11.  
  12. In <4dk51e$c6d@maureen.teleport.com> craigl@teleport.com (Craig
  13. Lovegren) writes: 
  14.  
  15.  <useless junk deleted>
  16.  
  17. >All kidding aside, why not check the multi-plexer.  Ask it to return
  18. the 
  19. >number of CD-ROM drives installed.  If it returns more than zero then
  20. it 
  21. >should tell you what the name of the first drive is.  For example, if
  22. >had 2 hard-drives and at least one CD drive it would tell you, the
  23. first 
  24. >CD is E:...  this would mean that the last writeable drive would be E
  25. - 1 
  26. >or D:... you think?
  27.  
  28. The is not totally correct.  MSCDEX can be told to put the CD at a
  29. curtain drive letter, for example J: and you certainly can't have 7
  30. HDs. Also, device drivers loaded from CONFIG.SYS can take some drive
  31. letters and put the count off.
  32.  
  33. >
  34. >Or... use a DOS function to return the number of bytes available... if
  35. it 
  36. >is -1 there was a problem reading the drive, either CD or
  37. non-existing.
  38. >
  39. >--
  40. >Real Life: Craig R. Lovegren
  41. >CyberLife: craigl@teleport.com
  42.  
  43. Later, Jon
  44.  
  45.